Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

I have a workaround

I don't have the answer but a workaround.

Insert a Scriptblock control on your page, this will contain your clientside javascript that you want to trigger. Then set a requestScope variable in your serverside code that will be used to control the visibilty of the scriptblock. So when the page reloads, the clientside script is now visible on the page and will trigger your window.open.

The scriptblock can be found at Other->Other Controls->Output Script

Here's an example with an alert():

<xp:scriptBlock id="scriptBlock1"
rendered="#{javascript:requestScope.showPopupWindow==true}">

<xp:this.value><![CDATA[alert("Popup");]]></xp:this.value>
</xp:scriptBlock>

In your serverside code set: requestScope.showPopupWindow=true;

-John


Feedback response number WEBB7RCP6A created by ~Ethan Umresaakol on 04/22/2009

XPages: how to automatically redire... (~Justin Zekaman... 20.Apr.09)
. . JSF redirect() (~Ethan Umresaak... 20.Apr.09)
. . . . of course it worked :-) (~Justin Zekaman... 21.Apr.09)
. . . . . . inherited from java.lang.Object (~Ethan Umresaak... 21.Apr.09)
. . . . . . . . Timer... (~Justin Zekaman... 22.Apr.09)
. . . . "Of course it worked" revisited... (~Justin Zekaman... 22.Apr.09)
. . . . . . Client Side Javascript (~Arnold Nimresa... 22.Apr.09)
. . . . . . . . I have a workaround (~Ethan Umresaak... 22.Apr.09)
. . . . . . . . . . also you can use dojo.addOnLoad(fun... (~Ethan Umresaak... 22.Apr.09)
. . . . . . . . . . . . Not for Partial Refreshes (~Arnold Nimresa... 23.Apr.09)
. . . . . . . . . . . . addOnLoad()... (~Justin Zekaman... 23.Apr.09)
. . . . . . . . . . . . . . example (~Ethan Umresaak... 23.Apr.09)
. . . . . . . . . . Works perfectly for me! (~Justin Zekaman... 23.Apr.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS